﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Ket_noi_toi_VPP_bang_mo_hinh_ba_lop.BUS;
using Ket_noi_toi_VPP_bang_mo_hinh_ba_lop.DAL;
using Ket_noi_toi_VPP_bang_mo_hinh_ba_lop.VO;
using System.Data;

namespace Ket_noi_toi_VPP_bang_mo_hinh_ba_lop.BUS
{
    class UserBusNhomSP
    {
        private NhomSP NSP;

        public UserBusNhomSP()
        {
            NSP = new NhomSP();
        }

        public bool Insert(UserVONhomSP obj)
        {
            return NSP.Insert(obj.TENNHOM);
        }

        public bool Update(UserVONhomSP obj)
        {
            return NSP.Update(obj.MANHOM, obj.TENNHOM);
        }

        public bool Delete(UserVONhomSP obj)
        {
            return NSP.Delete(obj.MANHOM);
        }

        public DataTable SelectAllTable()
        {
            return NSP.SelectAll();
        }

        public DataTable SelectID(int MaNhom)
        {
            return NSP.SelectID(MaNhom);
        }
    }
}
